home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / udev / rules.d / 85-ifupdown.rules < prev    next >
Text File  |  2008-10-12  |  954b  |  20 lines

  1. # This file causes network devices to be brought up or down as a result
  2. # of hardware being added or removed, including that which isn't ordinarily
  3. # removable.
  4. # See udev(7) for syntax.
  5.  
  6. # only activate this rule if /etc/network/networking has been run. This
  7. # way we ensure that the root file system is already writable and
  8. # ifupdown has a chance to actually work. See LP: #44194 for details.
  9. SUBSYSTEM=="net", DRIVERS=="?*", TEST=="/var/run/network/initialized", GOTO="net_start"
  10. GOTO="net_end"
  11.  
  12. LABEL="net_start"
  13.  
  14. # Bring devices up and down only if they're marked auto.
  15. # Use start-stop-daemon so we don't wait on dhcp
  16. ACTION=="add",        RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}"
  17. ACTION=="remove",    RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}"
  18.  
  19. LABEL="net_end"
  20.